package com.sgb.kjwl.view.ui.adapter.packers;

import android.content.Context;

import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ItemNoHookBinding;
import com.sgb.kjwl.model.entity.PickSelectEntity2;
import com.sgb.kjwl.model.entity.user.AddressEntity;
import com.sgb.kjwl.view.ui.adapter.YoungBaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * @author younghow
 * @date 2021/9/8 00:21
 * description:选择不带勾
 */
public class NoHookNoTypeAdapter<D extends PickSelectEntity2> extends YoungBaseRecycleAdapter<D> {

    public NoHookNoTypeAdapter(Context context, List<D> data) {
        super(context, R.layout.item_no_hook, data);
    }

    @Override
    public void convert(ItemViewHolder holder, final D entity) {
        ItemNoHookBinding binding = (ItemNoHookBinding) holder.getmBinding();
        binding.tvName.setText(entity.getName());
    }
}
